﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace The_Manilla_Project
{
    public partial class bedit : Form
    {
        public bedit()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            System.IO.StreamReader file = new System.IO.StreamReader(Properties.Settings.Default.pth + "\\manilla.txt");
            int counter = 0;
            string[] f = new string[50];
            while (counter != 29)
            {
                f[counter] = file.ReadLine();
                counter++;
            }
            file.Close();
            f[0] = textBox1.Text;
            System.IO.StreamWriter f2 = new System.IO.StreamWriter(Properties.Settings.Default.pth + "\\manilla.txt");
            int c2 = 0;
            while (c2 != 29)
            {
                f2.WriteLine(f[c2]);
                c2++;
            }
            f2.Close();
        }

        private void bedit_Load(object sender, EventArgs e)
        {

        }
    }
}
